class TestaccountEntity {
	int code;
	List<TestaccountData> data;
	String message;

	TestaccountEntity({this.code, this.data, this.message});

	TestaccountEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		if (json['data'] != null) {
			data = new List<TestaccountData>();(json['data'] as List).forEach((v) { data.add(new TestaccountData.fromJson(v)); });
		}
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
		data['message'] = this.message;
		return data;
	}
}

class TestaccountData {
	String name;
	String id;
	int type;

	TestaccountData({this.name, this.id, this.type});

	TestaccountData.fromJson(Map<String, dynamic> json) {
		name = json['name'];
		id = json['id'];
		type = json['type'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['name'] = this.name;
		data['id'] = this.id;
		data['type'] = this.type;
		return data;
	}
}
